//该组件用于管理项目的所有route
import VueRouter from 'vue-router';
import About from '../pages/About';
import Home from '../pages/Home';
import News from '../pages/News';
import Message from '../pages/Message';
import Detial from '../pages/Detial';

export default new VueRouter({
    routes:[
        {
            path:'/about',
            component: About
        },
        {
            path:'/home',
            component: Home,
            children:[
                {
                    path:'news',
                    component: News,
                },
                {
                    path:'message',
                    component: Message,
                    children:[
                        {
                            path:'detial',
                            component: Detial, 
                        }
                    ]
                }
            ]
        }
    ]
})